<template>
  <div class="shoplists_container">
    <div class="shoplists_item" v-for="item in shoplists" :key="item.id">
      <img :src="item.pic" alt="" />
      <p>{{ item.name }}</p>
      <p class="shoplist_p_two">{{item.minPrice}}</p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      shoplists: [],
    };
  },
  mounted() {
    this.$API.getList().then((res) => {
      console.log(res);
      this.shoplists = res.data.data;
    });
  },
};
</script>

<style scoped>
.shoplists_container {
  width: 100%;
  display: inline-flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.shoplists_item {
  width: 45%;
  height: 6rem;
  /* background-color: aquamarine; */
}
.shoplists_item img {
  width: 100%;
  height: 5rem;
}
.shoplist_p_two {
    color: red;
}
</style>